Skip to content

Commit 26b145a

Browse files
gahaasCommit Bot
authored andcommitted
[api] Deprecate ExternalStringResourceBase::IsCompressible
R=yangguo@chromium.org Bug: v8:8238 Change-Id: Ia59aefc54c2e9f4fa3348c42fb45e7fadab8ee76 Reviewed-on: https://chromium-review.googlesource.com/c/1349231 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#57788}
1 parent a921d89 commit 26b145a

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

include/v8.h

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,8 +2636,7 @@ class V8_EXPORT String : public Name {
26362636
public:
26372637
virtual ~ExternalStringResourceBase() = default;
26382638

2639-
V8_DEPRECATE_SOON("Use IsCacheable().",
2640-
virtual bool IsCompressible() const) {
2639+
V8_DEPRECATED("Use IsCacheable().", virtual bool IsCompressible() const) {
26412640
return false;
26422641
}
26432642

@@ -2646,16 +2645,7 @@ class V8_EXPORT String : public Name {
26462645
* ExternalStringResource::data() may be cached, otherwise it is not
26472646
* expected to be stable beyond the current top-level task.
26482647
*/
2649-
virtual bool IsCacheable() const {
2650-
#if __clang__
2651-
#pragma clang diagnostic push
2652-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
2653-
#endif
2654-
return !IsCompressible();
2655-
#if __clang__
2656-
#pragma clang diagnostic pop
2657-
#endif
2658-
}
2648+
virtual bool IsCacheable() const { return true; }
26592649

26602650
protected:
26612651
ExternalStringResourceBase() = default;

0 commit comments

Comments
 (0)