Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Remove deprecated options #72

Merged
merged 1 commit into from
Nov 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions docs/src/OptionsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,13 +694,6 @@ class OptionsPage extends React.Component {
This would be used as an additional way to add content that is constant in size with the visible frame of the item and does not get visibly hidden with the item's internal container: <code>{`timeline-item-overflow`}</code> which is <code>{`overflow:hidden`}</code>.</td>
</tr>

<tr className='deprecated'>
<td>throttleRedraw</td>
<td>number</td>
<td><code>{`0`}</code></td>
<td>This option is <b>DEPRECATED</b> and no longer supported. It will be removed in the next MAJOR release.</td>
</tr>

<tr className='toggle collapsible'>
<td><span parent="timeAxis"></span> timeAxis</td>
<td>Object</td>
Expand Down
7 changes: 0 additions & 7 deletions lib/DataSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,6 @@ class DataSet {
}
if (updatedIds.length) {
const props = { items: updatedIds, oldData, data: updatedData };
// TODO: remove deprecated property 'data' some day
//Object.defineProperty(props, 'data', {
// 'get': (function() {
// console.warn('Property data is deprecated. Use DataSet.get(ids) to retrieve the new data, use the oldData property on this object to get the old data');
// return updatedData;
// }).bind(this)
//});
this._trigger('update', props, senderId);
}

Expand Down
4 changes: 0 additions & 4 deletions lib/DataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,4 @@ DataView.prototype.on = DataSet.prototype.on;
DataView.prototype.off = DataSet.prototype.off;
DataView.prototype._trigger = DataSet.prototype._trigger;

// TODO: make these functions deprecated (replaced with `on` and `off` since version 0.5)
DataView.prototype.subscribe = DataView.prototype.on;
DataView.prototype.unsubscribe = DataView.prototype.off;

export default DataView;
9 changes: 0 additions & 9 deletions lib/timeline/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,6 @@ class Core {
}
}

if ('showCustomTime' in options) {
throw new Error('Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])');
}

// enable/disable autoResize
this._initAutoResize();
}
Expand Down Expand Up @@ -1080,11 +1076,6 @@ class Core {
dom.right.style.left = '0';
}

// TODO: deprecated since version 1.1.0, remove some day
repaint() {
throw new Error('Function repaint is deprecated. Use redraw instead.');
}

/**
* Set a current time. This can be used for example to ensure that a client's
* time is synchronized with a shared server time.
Expand Down
5 changes: 0 additions & 5 deletions lib/timeline/component/ItemSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,11 +1057,6 @@ class ItemSet extends Component {
item.select();
}
}
else if (type == 'rangeoverflow') {
// TODO: deprecated since version 2.1.0 (or 3.0.0?). cleanup some day
throw new TypeError('Item type "rangeoverflow" is deprecated. Use css styling instead: ' +
'.timeline-item.timeline-range .timeline-item-content {overflow: visible;}');
}
else {
throw new TypeError(`Unknown item type "${type}"`);
}
Expand Down