From 89196ef1d8a3114ae4b7020692fd54090dcb8b11 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Thu, 26 Sep 2024 18:31:58 +0200 Subject: [PATCH] Remove unused properties --- .../FamixPythonImport.class.st | 34 ------------------- .../FamixPythonGenerator.class.st | 2 -- 2 files changed, 36 deletions(-) diff --git a/src/Famix-Python-Entities/FamixPythonImport.class.st b/src/Famix-Python-Entities/FamixPythonImport.class.st index 32d91dd..3de13dc 100644 --- a/src/Famix-Python-Entities/FamixPythonImport.class.st +++ b/src/Famix-Python-Entities/FamixPythonImport.class.st @@ -26,8 +26,6 @@ | Name | Type | Default value | Comment | |---| | `asName` | `String` | nil | ""import b as c"", asName is c| -| `entityName` | `String` | nil | ""from a import b"", entityName is b| -| `fromName` | `String` | nil | ""from a import b"", fromName is a| | `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.| " @@ -37,8 +35,6 @@ Class { #traits : 'FamixTImport', #classTraits : 'FamixTImport classTrait', #instVars : [ - '#fromName => FMProperty', - '#entityName => FMProperty', '#asName => FMProperty' ], #category : 'Famix-Python-Entities-Entities', @@ -69,33 +65,3 @@ FamixPythonImport >> asName: anObject [ asName := anObject ] - -{ #category : 'accessing' } -FamixPythonImport >> entityName [ - - - - - ^ entityName -] - -{ #category : 'accessing' } -FamixPythonImport >> entityName: anObject [ - - entityName := anObject -] - -{ #category : 'accessing' } -FamixPythonImport >> fromName [ - - - - - ^ fromName -] - -{ #category : 'accessing' } -FamixPythonImport >> fromName: anObject [ - - fromName := anObject -] diff --git a/src/Famix-Python-Generator/FamixPythonGenerator.class.st b/src/Famix-Python-Generator/FamixPythonGenerator.class.st index 01d66fb..cfc849c 100644 --- a/src/Famix-Python-Generator/FamixPythonGenerator.class.st +++ b/src/Famix-Python-Generator/FamixPythonGenerator.class.st @@ -173,8 +173,6 @@ FamixPythonGenerator >> defineProperties [ super defineProperties. - (import property: #fromName type: #String) comment: '"from a import b", fromName is a'. - (import property: #entityName type: #String) comment: '"from a import b", entityName is b'. (import property: #asName type: #String) comment: '"import b as c", asName is c'. (class property: #isMetaclass type: #Boolean) comment: 'Whether this class is a metaclass'