Skip to content

Commit 33bcb56

Browse files
committed
remove backends
This is too much indirection. Backends have led to a few bugs by being confusing, and there is zero benefit to such an abstraction. It's only added LOC and more jumping around files to figure out what's happening. IIRC backends were added with the intent to have framebuffer backends but that never got merged because it's way out of scope. I broke the JS ctors in ce29f69 so we got lucky and don't have to call this a breaking change.
1 parent c1d99bd commit 33bcb56

17 files changed

+197
-500
lines changed

binding.gyp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,7 @@
6060
'include_dirs': ["<!(node -p \"require('node-addon-api').include_dir\")"],
6161
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'NODE_ADDON_API_ENABLE_MAYBE' ],
6262
'sources': [
63-
'src/backend/Backend.cc',
64-
'src/backend/ImageBackend.cc',
65-
'src/backend/PdfBackend.cc',
66-
'src/backend/SvgBackend.cc',
6763
'src/bmp/BMPParser.cc',
68-
'src/Backends.cc',
6964
'src/Canvas.cc',
7065
'src/CanvasGradient.cc',
7166
'src/CanvasPattern.cc',

examples/backends.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Backends.cc

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)