Skip to content

Commit b71dd48

Browse files
committed
Unused function
1 parent 5835d66 commit b71dd48

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

move-react.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ const path = require("path")
22
const fs = require("fs")
33
const fsExtra = require('fs-extra')
44

5-
const replaceInFileSync = (file, from, to) => {
6-
const data = fs.readFileSync(file, 'utf8');
7-
const newData = data.replace(new RegExp(from, 'g'), to);
8-
fs.writeFileSync(file, newData, { encoding: "utf8" });
9-
}
10-
115
// Copy source files to lib/flagsmith/src
126
fs.copyFileSync(path.join(__dirname,"index.ts"),path.join(__dirname,"lib/flagsmith/src/index.ts"))
137
fs.copyFileSync(path.join(__dirname,"flagsmith-core.ts"),path.join(__dirname,"lib/flagsmith/src/flagsmith-core.ts"))
@@ -46,7 +40,6 @@ try {
4640
fs.rmdirSync(path.join(__dirname,"lib/react-native-flagsmith/lib"), {recursive:true})
4741
} catch (e){}
4842

49-
5043
try {
5144
fs.rmdirSync(path.join(__dirname,"lib/flagsmith/test"), {recursive:true})
5245
} catch (e){}

0 commit comments

Comments
 (0)