Skip to content

Commit

Permalink
refactor(ecs): remove obsolete opts (TS3.9)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed May 13, 2020
1 parent f198835 commit c031d41
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/ecs/src/components/mem-component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
assert,
INotifyMixin,
Type,
typedArray,
uintType
} from "@thi.ng/api";
import { assert, INotifyMixin, Type, typedArray, uintType } from "@thi.ng/api";
import { AComponent } from "./acomponent";
import type { TypedArray, UIntArray } from "@thi.ng/api";
import type { ICache, MemMappedComponentOpts } from "../api";
Expand All @@ -28,10 +22,9 @@ export class MemMappedComponent<K extends string> extends AComponent<
opts: MemMappedComponentOpts<K>
) {
opts = {
type: <any>Type.F32,
size: 1,
byteOffset: 0,
...opts
...opts,
};
const size = opts.size!;
const stride = opts.stride || size;
Expand Down

0 comments on commit c031d41

Please sign in to comment.