Skip to content

Commit 0037c5f

Browse files
committed
More dce.
1 parent 2a3ef14 commit 0037c5f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

jscomp/gentype/Annotation.ml

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type import = {name: string; importPath: ImportPath.t}
1+
type import = {importPath: ImportPath.t}
22

33
type attributePayload =
44
| BoolPayload of bool
@@ -282,13 +282,8 @@ let sanitizeVariableName name =
282282
| c -> c)
283283

284284
let importFromString importString : import =
285-
let name =
286-
let base = importString |> Filename.basename in
287-
(try base |> Filename.chop_extension with Invalid_argument _ -> base)
288-
|> sanitizeVariableName
289-
in
290285
let importPath = ImportPath.fromStringUnsafe importString in
291-
{name; importPath}
286+
{importPath}
292287

293288
let updateConfigForModule ~(config : GenTypeConfig.t) attributes =
294289
if attributes |> hasAttribute tagIsGenType then

0 commit comments

Comments
 (0)