Skip to content

Commit 2cdfe9f

Browse files
Move deprecated methods to the correct package
1 parent 262ee65 commit 2cdfe9f

File tree

2 files changed

+34
-33
lines changed

2 files changed

+34
-33
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Extension { #name : #FamixTWithImports }
2+
3+
{ #category : #'*Famix-Deprecated' }
4+
FamixTWithImports >> addOutgoingImport: anObject [
5+
6+
self
7+
deprecated: 'Use #addImport:'
8+
transformWith:
9+
'`@receiver addOutgoingImport: `@argument' -> '`@receiver addImport: `@argument'.
10+
11+
^ self addImport: anObject
12+
]
13+
14+
{ #category : #'*Famix-Deprecated' }
15+
FamixTWithImports >> outgoingImports [
16+
17+
self
18+
deprecated: 'Use #imports'
19+
transformWith:
20+
'`@receiver outgoingImports' -> '`@receiver imports'.
21+
22+
^ self imports
23+
]
24+
25+
{ #category : #'*Famix-Deprecated' }
26+
FamixTWithImports >> outgoingImports: anObject [
27+
28+
self
29+
deprecated: 'Use #imports:'
30+
transformWith:
31+
'`@receiver outgoingImports: `@argument' -> '`@receiver imports: `@argument'.
32+
33+
^ self imports: anObject
34+
]

src/Famix-Traits/FamixTWithImports.trait.st

-33
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ FamixTWithImports >> addImport: anObject [
3333
^ self imports add: anObject
3434
]
3535

36-
{ #category : #'as yet unclassified' }
37-
FamixTWithImports >> addOutgoingImport: anObject [
38-
39-
self
40-
deprecated: 'Use #addImport:'
41-
transformWith:
42-
'`@receiver addOutgoingImport: `@argument' -> '`@receiver addImport: `@argument'.
43-
44-
^ self addImport: anObject
45-
]
46-
4736
{ #category : #accessing }
4837
FamixTWithImports >> imports [
4938
"Relation named: #imports type: #FamixTImport opposite: #importingEntity"
@@ -59,25 +48,3 @@ FamixTWithImports >> imports: anObject [
5948
<generated>
6049
imports value: anObject
6150
]
62-
63-
{ #category : #'as yet unclassified' }
64-
FamixTWithImports >> outgoingImports [
65-
66-
self
67-
deprecated: 'Use #imports'
68-
transformWith:
69-
'`@receiver outgoingImports' -> '`@receiver imports'.
70-
71-
^ self imports
72-
]
73-
74-
{ #category : #'as yet unclassified' }
75-
FamixTWithImports >> outgoingImports: anObject [
76-
77-
self
78-
deprecated: 'Use #imports:'
79-
transformWith:
80-
'`@receiver outgoingImports: `@argument' -> '`@receiver imports: `@argument'.
81-
82-
^ self imports: anObject
83-
]

0 commit comments

Comments
 (0)