Skip to content

Commit

Permalink
Removed file initialization logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Jul 10, 2017
1 parent 04acf28 commit ec576b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 60 deletions.
11 changes: 1 addition & 10 deletions src/editor/Collaboration.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ define(function (require, exports, module) {

var SimpleWebRTC = require("simplewebrtc"),
StartupState = require("bramble/StartupState"),
EditorManager = require("editor/EditorManager"),
Initializer = require("editor/Initializer"),
FileSystemEntry = require("filesystem/FileSystem"),
DocumentManager = require("document/DocumentManager");

Expand Down Expand Up @@ -75,14 +73,7 @@ define(function (require, exports, module) {
};

function _initializeNewClient(peer) {
Initializer.initialize(function(fileName) {
var file = FileSystemEntry.getFileForPath(fileName);
file.read({}, function(err, text) {
if(!err) {
peer.send("initFiles", {path: fileName, content: text});
}
});
});
//Add logic to initialize files for the new peer.
};

function _handleCodemirrorChange(params) {
Expand Down
50 changes: 0 additions & 50 deletions src/editor/Initializer.js

This file was deleted.

0 comments on commit ec576b6

Please sign in to comment.