Skip to content

Commit

Permalink
Removed the un/serialization of the locks in the FSManagers
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jun 4, 2017
1 parent 62556f5 commit 2786bea
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions lib/manager/PhysicalFSManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var PhysicalFSManager = (function () {
realPath: resource.realPath,
dateCreation: resource.dateCreation,
dateLastModified: resource.dateLastModified,
locks: resource.lockBag.locks,
properties: resource.properties
};
};
Expand All @@ -27,7 +26,6 @@ var PhysicalFSManager = (function () {
rs = new PhysicalFolder_1.PhysicalFolder(data.realPath, null, this);
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
};
Expand Down
2 changes: 0 additions & 2 deletions lib/manager/RootFSManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ var RootFSManager = (function () {
return {
dateCreation: resource.dateCreation,
dateLastModified: resource.dateLastModified,
locks: resource.lockBag.locks,
properties: resource.properties
};
};
RootFSManager.prototype.unserialize = function (data, obj) {
var rs = new RootResource_1.RootResource();
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
};
Expand Down
3 changes: 0 additions & 3 deletions lib/manager/VirtualFSManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var VirtualFSManager = (function () {
var result = {
dateCreation: resource.dateCreation,
dateLastModified: resource.dateLastModified,
locks: resource.lockBag.locks,
properties: resource.properties
};
result.name = resource.name;
Expand All @@ -26,7 +25,6 @@ var VirtualFSManager = (function () {
var rs = new VirtualFolder_1.VirtualFolder(data.name, null, this);
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand All @@ -38,7 +36,6 @@ var VirtualFSManager = (function () {
}
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand Down
3 changes: 0 additions & 3 deletions lib/manager/VirtualStoredFSManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ var VirtualStoredFSManager = (function () {
var result = {
dateCreation: resource.dateCreation,
dateLastModified: resource.dateLastModified,
locks: resource.lockBag.locks,
properties: resource.properties
};
result.name = resource.name;
Expand All @@ -126,7 +125,6 @@ var VirtualStoredFSManager = (function () {
var rs = new VirtualStoredFolder_1.VirtualStoredFolder(data.name, null, this);
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand All @@ -136,7 +134,6 @@ var VirtualStoredFSManager = (function () {
rs.contentUid = data.contentUid;
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand Down
2 changes: 0 additions & 2 deletions src/manager/PhysicalFSManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export class PhysicalFSManager implements FSManager
realPath: resource.realPath,
dateCreation: resource.dateCreation,
dateLastModified: resource.dateLastModified,
locks: resource.lockBag.locks,
properties: resource.properties
};
}
Expand All @@ -34,7 +33,6 @@ export class PhysicalFSManager implements FSManager

rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;

return rs;
Expand Down
2 changes: 0 additions & 2 deletions src/manager/RootFSManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class RootFSManager implements FSManager
return {
dateCreation: resource.dateCreation,
dateLastModified: resource.dateLastModified,
locks: resource.lockBag.locks,
properties: resource.properties
};
}
Expand All @@ -28,7 +27,6 @@ export class RootFSManager implements FSManager
const rs = new RootResource();
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand Down
3 changes: 0 additions & 3 deletions src/manager/VirtualFSManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class VirtualFSManager implements FSManager
const result : any = {
dateCreation: resource.dateCreation,
dateLastModified: resource.dateLastModified,
locks: resource.lockBag.locks,
properties: resource.properties
};

Expand All @@ -34,7 +33,6 @@ export class VirtualFSManager implements FSManager
const rs = new VirtualFolder(data.name, null, this);
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand All @@ -49,7 +47,6 @@ export class VirtualFSManager implements FSManager
}
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand Down
3 changes: 0 additions & 3 deletions src/manager/VirtualStoredFSManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export class VirtualStoredFSManager implements FSManager
const result : any = {
dateCreation: resource.dateCreation,
dateLastModified: resource.dateLastModified,
locks: resource.lockBag.locks,
properties: resource.properties
};

Expand All @@ -171,7 +170,6 @@ export class VirtualStoredFSManager implements FSManager
const rs = new VirtualStoredFolder(data.name, null, this);
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand All @@ -183,7 +181,6 @@ export class VirtualStoredFSManager implements FSManager
rs.contentUid = data.contentUid;
rs.dateCreation = data.dateCreation;
rs.dateLastModified = data.dateLastModified;
rs.lockBag.locks = data.locks;
rs.properties = data.properties;
return rs;
}
Expand Down

0 comments on commit 2786bea

Please sign in to comment.