1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Removed unused private methods and members.

This commit is contained in:
Mikhail Khodjaiants 2003-04-08 21:06:50 +00:00
parent 928199b44e
commit 7c0622e66b
5 changed files with 8 additions and 57 deletions

View file

@ -1,3 +1,10 @@
2003-04-08 Mikhail Khodjaiants
Removed unused private methods and members.
* CDebugEditor.java
* MemoryPresentation.java
* MemoryText.java
* MemoryViewer.java
2003-04-08 Mikhail Khodjaiants
Preserving the registers tree structure during the debug session.
* ViewerState.java: new

View file

@ -95,7 +95,7 @@ public class CDebugEditor extends CEditor
/** The attach source button */
private Button fAttachButton = null;
/** The preference change listener */
private IPropertyChangeListener fPropertyChangeListener;
// private IPropertyChangeListener fPropertyChangeListener;
private IEditorInput fInput = null;

View file

@ -27,8 +27,6 @@ import org.eclipse.swt.widgets.Display;
*/
public class MemoryPresentation
{
static final private char NOT_AVAILABLE_CHAR = '?';
private static final int INTERVAL_BETWEEN_ADDRESS_AND_DATA = 2;
private static final int INTERVAL_BETWEEN_DATA_ITEMS = 1;
private static final int INTERVAL_BETWEEN_DATA_AND_ASCII = 1;
@ -163,14 +161,6 @@ public class MemoryPresentation
return result.toString();
}
private String resize( String item, char ch, int size )
{
char[] chars = new char[size - item.length()];
for ( int i = 0; i < chars.length; ++i )
chars[i] = ch;
return String.valueOf( chars ).concat( item );
}
private int getRowLength()
{
return getAddressLength() +
@ -185,16 +175,6 @@ public class MemoryPresentation
return 10;
}
private boolean isInAddressZone( int offset )
{
if ( getRowLength() != 0 )
{
int pos = offset % getRowLength();
return ( pos >= 0 && pos < getAddressLength() );
}
return false;
}
private boolean isInAsciiArea( int offset )
{
if ( displayASCII() && getRowLength() != 0 )
@ -259,13 +239,6 @@ public class MemoryPresentation
return 0;
}
private char getPaddingCharacter()
{
if ( getMemoryBlock() != null )
return getMemoryBlock().getPaddingCharacter();
return '.';
}
protected boolean displayASCII()
{
if ( canDisplayAscii() )

View file

@ -126,24 +126,6 @@ public class MemoryText
fText.getCaret().setVisible( true );
}
private void refresh( Point[] zones, String[] items )
{
int count = ( zones.length < items.length ) ? zones.length : items.length;
for ( int i = 0; i < count; ++i )
{
fText.replaceTextRange( zones[i].x,
zones[i].y - zones[i].x + 1,
items[i] );
/*
fText.setStyleRange( new StyleRange( zones[i].x,
zones[i].y - zones[i].x + 1,
getDirtyColor(),
getBackgroundColor() ) );
*/
fText.redrawRange( zones[i].x, zones[i].y - zones[i].x + 1, false );
}
}
protected void handleVerifyKey( VerifyEvent event )
{
if ( event.character == SWT.LF ||
@ -192,11 +174,6 @@ public class MemoryText
return CDebugUIPlugin.getPreferenceColor( ICDebugPreferenceConstants.MEMORY_CHANGED_RGB );
}
private Color getDirtyColor()
{
return CDebugUIPlugin.getPreferenceColor( ICDebugPreferenceConstants.MEMORY_DIRTY_RGB );
}
public void changeFont()
{
Font oldFont = fText.getFont();

View file

@ -161,12 +161,6 @@ public class MemoryViewer extends ContentViewer
return fTabFolder;
}
private MemoryControlArea getMemoryControlArea( int index )
{
CTabItem item = fTabFolder.getItem( index );
return ( item != null ) ? (MemoryControlArea)item.getControl() : null;
}
private MemoryControlArea getMemoryControlArea( IFormattedMemoryBlock block )
{
CTabItem[] tabItems = fTabFolder.getItems();