Issue 4274 in pharo: Unused classes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 4274 in pharo: Unused classes

pharo
Status: Comment
Owner: [hidden email]

New issue 4274 by [hidden email]: Unused classes
http://code.google.com/p/pharo/issues/detail?id=4274

Just for fun, I have run a little script to check "unused" classes in the  
system.
Here is the script:

        | result cache |
        cache := Dictionary new.
        result := OrderedCollection new.
       
        Smalltalk allClassesDo: [:class || references |
                references := class allCallsOnIn: self systemNavigation.
                cache at: class put: references.
                references ifEmpty: [ result add: class ]].
        result := result reject: [:each | each inheritsFrom: TestCase ].
        result := result reject: [:each | each allSubclasses anySatisfy: [:sub |  
(cache at: sub) isEmpty not ]].
        ^ result

And the result is 157 classes:

AboutDialogWindow
ActionSequence
AnimatedGIFReadWriter
AsyncFile
BadEqualer
BalloonBezierSimulation
BalloonEngineConstants
BalloonRectangleMorph
BalloonSolidFillSimulation
BlueUITheme
BoundedGradientFillStyle
BrowserSystemSettings
BytecodeAgnosticMethodNode
CNGBTextConverter
CachingMorph
ChangeFileReader
ChooserTool
ChronologyConstants
ClassListExample
ClassTreeExample
CodeCkecker
CodeHolderSystemSettings
CommentNode
CompilerSystemSettings
CompressedBoundaryShape
ConnectionQueue
CurveMorph
DebugSystemSettings
DefaultExternalDropHandler
DifferatorSystemSettings
DigitalSignatureAlgorithm
DirectoryURI
DisplaySettings
DisplayText
DummyUIManager
EventSensorConstants
FT2BitmapSize
FT2MemoryFaceData
FT2Version
FakeClassPool
FileContentsBrowser
FillInTheBlankMorph
FillStyleBorder
FixUnderscores
FormStub
FreeTypeSubPixelAntiAliasedGlyphRenderer
FreeTypeSystemSettings
GLMOrangeUITheme
GraphicFontSettings
HelpHowToHelpTopicsFromCode
HostSystemMenusMacOSX
HostSystemMenusMenuItemMac
HostSystemMenusWindows
InputEventSensorSystemSettings
InternetConfiguration
JPEGHuffmanTable
KOI8RTextConverter
LazyClassListExample
MCClassTraitParser
MCDirtyPackageInfo
MCGOODSRepository
MCMockAPoolDictionary
MCSMReleaseRepository
MCScriptParser
MCSmtpRepository
MCSystemCategoryParser
MCSystemSettings
MCTraitParser
MCWriteOnlyRepository
MacHFSPlusFileDirectory
MacOS9WindowProxy
MacOSXPlatform
MacOSXWindowProxy
MailComposition
MarginBorder
MenuRegistrationExample
MetacelloConfigurationBrowser
MidiPrimTester
MixedCurveMorph
MorphListItemWrapper
MorphicUIManager
MultiCanvas
MultiCanvasCharacterScanner
MultiNewParagraphWithSelectionColor
MultistateLabelMorph
Mutex
MutexSet
NaNException
NaturalLanguageFormTranslator
NullCanvas
NullStream
ObjectScanner
PCXReadWriter
PNMReadWriter
PSMCSystemSettings
PSToolBuilder
PackageServices
PackageTreeExample
PickAFileToWriteNotification
PluggableButtonMorphPlus
PluggableIconListMorphOfMany
PluggableMorphListMorphOfMany
PluggableTabBarMorph
PluggableTextAttribute
PluggableTextEditorMorph
PluggableThemedPanelMorph
PointerFinder
Preferences
Quadrangle
RecentMessageSet
RegexAPIDocumentation
RegexHelp
RowScrollerMorph
SHA1
SegmentScanner
SerialPort
ShadowLabelMorph
SimpleGridExample
SimplestClassListExample
SimplestClassListWithChunkExample
SimplestClassListWithPagerExample
SocketPrimitiveFailed
SocksSocket
SparseLargeArray
SparseXTable
StandardSourceFileArray
StaticForm
SuperSendingProxy
SystemSystemSettings
TarArchive
TaskListSystemSettings
TaskbarSystemSettings
TextIndent
TextMorphForEditorView
TheWorldMenu
ThumbnailImageMorph
TranscriptStream
TranslucentProgessMorph
UIThemeVistary
UIThemeW2K
UTF8DecomposedTextConverter
UndeclaredVariableReference
UnixFileDirectory
UnixPlatform
UpdatingMenuMorph
UrlArgumentList
UserOfFooSharedPool
WateryThemeIcons
WeakOrderedCollection
Win32Platform
XTableForUnicodeFont
ZipFileConstants
ZnByteEncoder
ZnExtendedFixedClient
ZnFileLogger
ZnMonticelloServerDelegate
ZnStaticFileServerDelegate


Maybe some of them could be removed


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4274 in pharo: Unused classes

pharo
Updates:
        Status: Invalid

Comment #1 on issue 4274 by [hidden email]: Unused classes
http://code.google.com/p/pharo/issues/detail?id=4274

This issue does not represent an actionable thing. We will get reporting  
about strange code later with SLINT on the build server


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker