DEV: Remove ScrollTop mixin (#12673)

It was deprecated (incorrectly! see the import 😅) 5 years ago. No references found anymore in core and all-the-plugins.
This commit is contained in:
Jarek Radosz 2021-04-12 17:52:53 +02:00 committed by GitHub
parent 958fbfb719
commit 7d1cef71ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -1,6 +1,4 @@
import DiscourseURL from "discourse/lib/url";
import Mixin from "@ember/object/mixin";
import { deprecated } from "discourse/mixins/scroll-top";
import { isTesting } from "discourse-common/config/environment";
import { scheduleOnce } from "@ember/runloop";
@ -20,14 +18,4 @@ function scrollTop() {
scheduleOnce("afterRender", context, context._scrollTop);
}
export default Mixin.create({
didInsertElement() {
deprecated(
"The `ScrollTop` mixin is deprecated. Replace it with a `{{d-section}}` component"
);
this._super(...arguments);
scrollTop();
},
});
export { scrollTop };