diff --git a/lib/persisted-model.js b/lib/persisted-model.js index 2f5faf5f..2296067d 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -896,23 +896,6 @@ module.exports = function(registry) { }); } - if (options.trackChanges) { - // Deprecated (legacy) exports kept for backwards compatibility - // TODO(bajtos) Hide these two exports in LoopBack 3.0 - setRemoting(PersistedModel, 'rectifyAllChanges', { - description: 'Rectify all Model changes.', - accessType: 'WRITE', - http: { verb: 'post', path: '/rectify-all' }, - }); - - setRemoting(PersistedModel, 'rectifyChange', { - description: 'Tell loopback that a change to the model with the given id has occurred.', - accessType: 'WRITE', - accepts: { arg: 'id', type: 'any', http: { source: 'path' }}, - http: { verb: 'post', path: '/:id/rectify-change' }, - }); - } - setRemoting(PersistedModel, 'createChangeStream', { description: 'Create a change stream.', accessType: 'READ',