Skip to content

Maybe dead code #2

Description

@tinchodias

I'm listing some code to look at.

There is this class that seems to implement Null pattern:

Object subclass: #SpartaUnimplementedPathBuilder
	uses: TSpartaPathBuilder
	instanceVariableNames: ''
	classVariableNames: ''
	package: 'Sparta-Core-Builders - Unimplemented'

Only referenced from SpartaCanvas:

pathBuilderClass
	<return: #'TSpartaPathBuilder class'>

	true ifFalse: [ self subclassResponsibility ].	
	^ SpartaUnimplementedPathBuilder

UPDATE:

I discovered the class when looking at Code Critics and wanted to take note. But minutes later I realized there is a Package tag with many classes with this "pattern"... something to understand.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions