1 // Copyright 2015 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.base.annotations; 6 7 import java.lang.annotation.ElementType; 8 import java.lang.annotation.Target; 9 10 /** 11 * The annotated function can be removed in release builds. 12 * 13 * Calls to this function will be removed if its return value is not used. If all calls are removed, 14 * the function definition itself will be candidate for removal. 15 * It works by indicating to Proguard that the function has no side effects. 16 */ 17 @Target({ElementType.METHOD, ElementType.CONSTRUCTOR}) 18 public @interface RemovableInRelease {} 19