Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiltd committed Dec 12, 2024
1 parent 537903d commit e1d7095
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions builtins/web/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@ bool File::lastModified_get(JSContext *cx, unsigned argc, JS::Value *vp) {
return true;
}

JSObject *File::blob(JSObject *self) {
MOZ_ASSERT(is_instance(self));
auto blob = &JS::GetReservedSlot(self, static_cast<size_t>(Blob::Slots::Data)).toObject();

MOZ_ASSERT(blob);
return blob;
}

bool File::is_instance(const JSObject *obj) {
return obj != nullptr
&& (JS::GetClass(obj) == &class_ || JS::GetClass(obj) == &Blob::class_);
Expand Down
2 changes: 0 additions & 2 deletions builtins/web/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class File: public BuiltinImpl<File> {
static bool is_instance(const JSObject *obj);
static bool is_instance(const Value val);

static JSObject *blob(JSObject *self);

static bool init_class(JSContext *cx, HandleObject global);
static bool constructor(JSContext *cx, unsigned argc, Value *vp);
};
Expand Down

0 comments on commit e1d7095

Please sign in to comment.