diff --git a/repository/Neo-CSV-Magritte/MAElementDescription.extension.st b/repository/Neo-CSV-Magritte/MAElementDescription.extension.st index 5ffb32e..613af6d 100644 --- a/repository/Neo-CSV-Magritte/MAElementDescription.extension.st +++ b/repository/Neo-CSV-Magritte/MAElementDescription.extension.st @@ -31,13 +31,3 @@ MAElementDescription >> defaultCsvReader [ ^ [ :trimmed | self fromString: trimmed ]. ] - -{ #category : #'*Neo-CSV-Magritte' } -MAElementDescription >> fromCSV: aStringOrNil [ - | value | - (aStringOrNil isNil or: [ aStringOrNil isEmpty ]) ifTrue: [ ^ nil ]. - value := self csvReader cull: aStringOrNil trimmed cull: self. - (self default = value and: [ self shouldCacheDefault not ]) ifTrue: [ ^ nil ]. - ^ value - "Implementation note: this was extracted from NeoCSVReader's Magritte field adding because it is useful in other places e.g. MACSVImporter" -] diff --git a/repository/Neo-CSV-Magritte/NeoCSVReader.extension.st b/repository/Neo-CSV-Magritte/NeoCSVReader.extension.st index 175efdb..c6410d3 100644 --- a/repository/Neo-CSV-Magritte/NeoCSVReader.extension.st +++ b/repository/Neo-CSV-Magritte/NeoCSVReader.extension.st @@ -8,5 +8,5 @@ NeoCSVReader >> addFieldDescribedByMagritte: aDescription [ converter: [ :s | s trimmed ifNotEmpty: aDescription csvReader - ifEmpty: [ aDescription default ] ] + ifEmpty: [ aDescription undefinedValue ] ] ]