Questions tagged [deprecated]

Deprecation is a status applied to software features or language terms to indicate that they should be avoided, typically because they have been superseded. Use this tag for questions about deprecated features or how to deprecate features yourself (e.g. using annotations).

In the process of authoring computer software, its standards or documentation, deprecation is a status applied to software features to indicate that they should be avoided, typically because they have been superseded. Although deprecated features remain in the software, their use may raise warning messages recommending alternative practices, and deprecation may indicate that the feature will be removed in the future.

Features are deprecated—rather than immediately removed—in order to provide backward compatibility and give programmers who have used the feature time to bring their code into compliance with the new standard.

2508 questions
33
votes
1 answer

Deprecated std::is_literal_type in C++17

According to cppreference, the trait std::is_literal_type is deprecated in C++17. The question is why and what is the preferred replacement for the future to check whether a type is a literal type.
plasmacel
  • 8,183
  • 7
  • 53
  • 101
33
votes
1 answer

Mark element as deprecated in XSD

I have an XSD that's going through a transition from one set of elements to another. During the transition, there'll be code expecting the new elements and code expecting the old elements. Therefore I need to keep the old elements in the XSD; I'm…
mopoke
  • 10,555
  • 1
  • 31
  • 31
33
votes
4 answers

Why is mime_content_type() deprecated in PHP?

I'm just curious to know why mime_content_type() is now considered deprecated. This method for determining the mime type is much easier than the replacement Fileinfo functionality.
Josiah
  • 3,232
  • 3
  • 25
  • 25
33
votes
5 answers

A Lot of Functions are deprecated - iOs 6

I have a few functions that are deprecated since iOs 6. Maybe this'll be helpful for others who also just updated to iOs 6. [self presentModalViewController:pNewController animated:YES]; presentModalViewController:animated is deprecated since…
David Raijmakers
  • 1,369
  • 1
  • 16
  • 40
32
votes
1 answer

How can I deprecate an entire protocol?

Is it possible to deprecate an entire protocol? I'm using the GCC compiler that is shipped with iOS SDK 5.0 Beta 7. DEPRECATED_ATTRIBUTE doesn't seem to work. For example, the following two statements do not compile. @protocol DEPRECATED_ATTRIBUTE…
Hyperbole
  • 3,917
  • 4
  • 35
  • 54
32
votes
10 answers

Flutter FlatButton is deprecated - alternative solution with width and height

After Flutter Upgrade "FlatButton" is deprecated and I have to use TextButton instead. I didn't find a solution for a new button-type with width and height. This is my working FlatButton. How can I solve it with textButton or…
Moo
  • 670
  • 1
  • 6
  • 11
32
votes
3 answers

GestureDetector Deprecated Issue

I have this code itemizedOverlay = new MyItemizedOverlay(drawable,this); itemizedOverlay.setGestureDetector(new GestureDetector(new MyGestureDetecor())); but new GestureDetector is marked as Deprecated in Eclipse. I want to avoid the use of…
AndreaF
  • 11,975
  • 27
  • 102
  • 168
31
votes
4 answers

How to deal with deprecated classes in Android to keep compatibility

I am getting back to work on an app I worked on a while ago, when I had everything built around Android 2.2 Froyo. I have updated my SDK for the latest APIs and noticed that the ClipboardManager features I was using are deprecated. I updated the…
HXCaine
  • 4,228
  • 3
  • 31
  • 36
31
votes
4 answers

replacement for std::binary_function

std::binary_function is deprecated now and is going to be deleted in c++17. I searched on different publications, but I couldn't find a exact way to replace it. I'd like to know how should I write the following code in c++11 style. template
Luis
  • 433
  • 1
  • 5
  • 11
31
votes
5 answers

gluPerspective was removed in OpenGL 3.1, any replacements?

I'm trying to read some OpenGL tutorials on the net. the problem is that I found some old ones that use gluPerspective(). gluPerspective was deprecated in OpenGL 3.0 and removed in 3.1. What function can I use instead? I'm using C++ with latest…
ufk
  • 30,912
  • 70
  • 235
  • 386
30
votes
7 answers

CSS replacement for

I know this question has been asked many times, but I never saw a satisfactory answer. I mean, an answer that actually works. So, here we go again. Take this jsFiddle: http://jsfiddle.net/KFMyn/3/ If you remove the align="center" from the HTML, what…
Mr Lister
  • 45,515
  • 15
  • 108
  • 150
30
votes
5 answers

$HADOOP_HOME is deprecated

I started a hadoop cluster. I get this warning message: $HADOOP_HOME is deprecated I already add export HADOOP_HOME_WARN_SUPPRESS="TRUE" into hadoop-env.sh When I started the cluster, I do not see any more warning message. However, When I run…
chnet
  • 1,993
  • 9
  • 36
  • 51
30
votes
4 answers

initWithFrame : reuseIdentifier : is deprecated

In my project i've got a Deprecations warning, initWithFrame : reuseIdentifier : is deprecated I don't know what it mean, could some one tell me how to resolve this warning thanks here is the short code - (UITableViewCell *)tableView:(UITableView…
a3116b
  • 337
  • 1
  • 5
  • 13
29
votes
2 answers

In Android, How can I avoid the onStart method from being deprecated?

I am having a problem with setting the onStart method in my app. It always has a strikethrough, saying "This method was deprecated in API level 5. I need onStart, not onStartCommand. How can I resolve this? MyNotificationService.java import…
Christopher Treanor
  • 505
  • 2
  • 8
  • 13
29
votes
4 answers

value_to_boolean deprecated; what's a good replacement?

Is there a "cool-kid-approved" replacement for ActiveRecord::ConnectionAdapters::Column.value_to_boolean in rails 3.2?
Chris B
  • 764
  • 1
  • 7
  • 19