Skip to content

Commit 88df755

Browse files
committed
Revert "Make FSPlatformResolver non-abstract so we can support any platform"
This reverts commit 4a9e6bf.
1 parent 4a9e6bf commit 88df755

File tree

13 files changed

+51
-9
lines changed

13 files changed

+51
-9
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
instance creation
22
forCurrentPlatform
3-
43
| platformName |
54
platformName := Smalltalk os platformName.
6-
^ (self allSubclasses detect: [:ea | ea platformName = platformName] ifNone: [self]) new
5+
^ (self allSubclasses detect: [:ea | ea platformName = platformName]) new
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
origins
2+
desktop
3+
^ self subclassResponsibility
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
origins
2+
documents
3+
^ self subclassResponsibility
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
origins
22
home
3-
4-
^ self resolveString: self class primitiveGetUntrustedUserDirectory
3+
^ self subclassResponsibility
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
resolving
22
supportedOrigins
3-
4-
^ self class allMethodsInCategory: 'origins'
3+
^ #(home desktop documents)
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"class" : {
3-
"forCurrentPlatform" : "ct 9/3/2021 16:25",
3+
"forCurrentPlatform" : "tg 11/8/2010 19:05",
44
"platformName" : "cwp 10/27/2009 10:58",
55
"primitiveGetUntrustedUserDirectory" : "CamilloBruni 8/12/2011 17:36" },
66
"instance" : {
7-
"home" : "ct 9/3/2021 16:22",
8-
"supportedOrigins" : "ct 9/3/2021 16:24" } }
7+
"desktop" : "lr 7/13/2010 15:35",
8+
"documents" : "lr 7/13/2010 15:35",
9+
"home" : "cwp 10/27/2009 21:01",
10+
"supportedOrigins" : "cwp 10/27/2009 21:45" } }

src/FS-Core.package/FSSqueakJSResolver.class/README.md

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
platformName
3+
4+
^ 'JS'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
origins
2+
desktop
3+
4+
^ self home
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
origins
2+
documents
3+
4+
^ self home

0 commit comments

Comments
 (0)