diff --git a/src/filemanager.html b/src/filemanager.html
index edb8e1a5f..d76f9ee87 100644
--- a/src/filemanager.html
+++ b/src/filemanager.html
@@ -262,9 +262,8 @@
diff --git a/src/js/filemanager.js b/src/js/filemanager.js
index bd76c5f5d..963010734 100644
--- a/src/js/filemanager.js
+++ b/src/js/filemanager.js
@@ -467,7 +467,7 @@ app.controller('FileManagerController', ['$scope', '$timeout', 'Client', functio
});
},
- save: function (callback) {
+ save: function () {
$scope.textEditor.busy = true;
var newContent = $scope.textEditor.editor.getValue();
@@ -476,16 +476,7 @@ app.controller('FileManagerController', ['$scope', '$timeout', 'Client', functio
Client.filesUpload($scope.appId, filePath, file, function () {}, function (error) {
$scope.textEditor.busy = false;
-
if (error) return Client.error(error);
-
- if (callback) callback();
- });
- },
-
- saveAndClose: function () {
- $scope.textEditor.save(function () {
- $scope.textEditor.close();
});
},